package fr.labri.macchiato.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import fr.labri.macchiato.framework.technical.queryLauncher.RpcQueryLauncher;

/**
 * Executes a Sparql Query on a local model
 * 
 * @author Matthieu FOUCAULT
 * 
 */
public class RpcQueryLauncherImpl extends RemoteServiceServlet implements
		RpcQueryLauncher {
	private static final long serialVersionUID = -9134475366063038415L;

	@Override
	public void loadModel() {
		JenaQueryLauncher.getInstance();
	}

	@Override
	public String launchQueryForJSON(String queryString) {
		return JenaQueryLauncher.getInstance().launchQueryForJSON(queryString);
	}

}
